#include "SSSPWorker.h"
#include "includes.h"
#include "structs.h"
#include "declares.h"
#include "sssp.h"

JNIEXPORT void JNICALL Java_SSSPWorker_run
  (JNIEnv *env, jobject self, jobjectArray args)
{
}

JNIEXPORT void JNICALL Java_SSSPWorker_setAppName
(JNIEnv *env, jobject self, jstring jname)
{
        const jchar *name = (*env)->GetStringChars(env, jname, NULL);
        grape_set_app_name((char*) name);
}


JNIEXPORT jstring JNICALL Java_SSSPWorker_getAppName
  (JNIEnv *env, jobject self)
{
        jchar *c_name=( jchar* ) grape_app.app_name;
        int c_len=strlen(c_name);
        jstring name=(*env)->NewString(env,c_name,c_len);
        return name;
}
